<?php
class Man extends Person {
    protected $name = '男人';
    public function accept(State $visitor) {
        $visitor->ManAction($this);
    }
}